# Contributor: Martijn Braam <martijn@brixit.nl>
# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=postprocessd
pkgver=0.2.1
pkgrel=0
pkgdesc="Queueing megapixels post-processor"
url="https://git.sr.ht/~martijnbraam/postprocessd"
arch="all !ppc64le !s390x" # No opencv
license="GPL-3.0-only"
subpackages="$pkgname-doc $pkgname-megapixels"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~martijnbraam/postprocessd/archive/$pkgver.tar.gz"
makedepends="meson libexif-dev libjpeg-turbo-dev tiff-dev opencv-dev libraw-dev scdoc"
options="!check" # no testsuite

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

megapixels() {
	install_if="$pkgname=$pkgver-r$pkgrel megapixels"

	amove usr/share/megapixels
}


sha512sums="
486b3549d5db819ad34b47589140ea7ab7ec897f66b5b30e1a6ad256d83f57d6c31dc714e1bf97a5c8cc8d2861b1f0adf9554de27e64af89f774553aa72922d2  postprocessd-0.2.1.tar.gz
"
